package com.douyuehan.doubao.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.douyuehan.doubao.project.model.dto.LoginDTO;
import com.douyuehan.doubao.project.model.dto.RegisterDTO;
import com.douyuehan.doubao.project.model.entity.BmsUser;
import com.douyuehan.doubao.project.model.vo.ProfileVO;

public interface BmsUserService extends IService<BmsUser> {
    /**
     * 用户注册
     */
    BmsUser userRegister(RegisterDTO registerDTO);

    /**
     * 获取用户信息
     * @param username
     * @return dbUser
     */
    BmsUser getUserByUsername(String username);
    /**
     * 用户登录
     * @param dto
     * @return 生成的JWT的token
     */
    String executeLogin(LoginDTO dto);

    /**
     * 获取用户信息
     *
     * @param id 用户ID
     * @return
     */
    ProfileVO getUserProfile(String id);
}
